#include <iostream>
#include<algorithm>
#include<vector>

#include "Vector.h"

using namespace std;

int main()
{
	vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);
	v.push_back(5);
	cout << v.size() << endl;
	cout << v.capacity() << endl;
	for (size_t i = 0; i < v.size(); i++)
	{
		cout << v[i] << " ";
	}
	cout << endl;

	for (auto e : v)
	{
		cout << e << " ";
	}
	cout << endl;

	v.reserve(30);
	cout << v.capacity() << endl;
	vector<int>::iterator it = v.begin();
	while (it != v.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;

	vector<int> v1(v);
	v1.push_back(100);
	v1.push_back(200);
	v1.pop_back();
	for (auto e : v1)
	{
		cout << e << " ";
	}
}